import httpRequest from "@/services";
export function getMapPageList(params) {
  return httpRequest({
    url: window.config.apiHost + "/trace/map/page",
    method: "get",
    params: {
      ...params,
      msg_id: "1034",
      start_no: 1,
    },
  });
}

export function getElevatorList(params) {
  return httpRequest({
    url: window.config.apiHost + "/elevator/info/list",
    method: "get",
    params: {
      ...params
    },
  });
}

export function addElevator(params) {
  return httpRequest({
    url: window.config.apiHost + "/elevator/info",
    method: "post",
    params: {
      ...params,
    },
  });
}

export function editElevator(params) {
  return httpRequest({
    url: window.config.apiHost + "/elevator/info",
    method: "put",
    params: {
      ...params,
    },
  });
}

export function deleteMap(params) {
  return httpRequest({
    url: window.config.apiHost + "/trace/map/"+ params,
    method: "delete",
    params: {
      ...params,
    },
  });
}
